
<%@ page language="java" isELIgnored="false" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 
<title>航班价差统计</title>
<link href="<%=request.getContextPath() %>/fare/css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/lib/ligerUI/js/ligerui.min.js"></script>
<link href="<%=request.getContextPath() %>/fare/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/citylist.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
<link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">
<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/jsFile/FDCCrawl/js/FDCCrawl.js"></script>	
</head>
<body>
<jsp:include page="../inc/treelist3.jsp"></jsp:include>
<div class="main main_max" >
	<div class="sideBar">
	<div class="box">
		<div class="location">当前位置： 渠道运价分析 &gt; 航班价差统计</div>
	</div>
	</div>
	<div class="form_body">
		<div class="main_max">
			<div class="form_table_tltle">比较条件</div>
	<form action="" method="post" id="">
	<table cellSpacing=0 cellPadding=0 width="100%" border=0 class="form_table">
		<tr>
			<td class="left">航空公司：</td>
			<td class="">
				 <select style="width: 150px;" id="compareCompany"  disabled="disabled" >
					<c:forEach var="item" items="${crawlCompanys}">
					<option value="${item.hbaseKey}"
					<c:if test="${item.hbaseKey==sessionScope.currentUser.sourceId}">selected='selected' </c:if>
					>${item.name}</option>
					</c:forEach>
				 </select>
			<td></td>
		</tr>
		<tr>
			<td class="left">航线：</td>
			<td class="">
				<input type="text" readonly="readonly" id="fromCityName" name="fromCityName"/>&nbsp;至&nbsp;
				<input type="text" readonly="readonly" id="fromCityName" name="fromCityName"/></td>
			<td></td>
		</tr>
		<tr>
			<td class="left">抓取时间：</td>
			<td ><input type="text" readonly="readonly"  id="crawlDate" name="crawlDate"
			onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'});"/>
			</td>
			<td></td>
		</tr>
		<tr>
			<td class="left">未来天数：</td>
			<td >
				<input type="radio" name="futureDay" value="3" checked="checked"/>未来3天
				<input type="radio" name="futureDay" value="7"/>未来7天
				<input type="radio" name="futureDay" value="15"/>未来15天
			</td>
			<td></td>
		</tr>
		<tr>
			<td class="left">价差比例：</td>
			<td >
				<%-- 价差比例：必选，默认为全部。列表中价差比例=官网价格/渠道价格-1，显示百分比，保留小数点后2位。
				“大于3%”为价差比例在数值上小于-3.00%的，“大于6%”为价差比例在数值上小于-6.00%的。（有几个单选项，每个单选项的数值可配置） --%>
				<input type="radio" name="priceProportion" checked="checked"/>全部
				<input type="radio" name="priceProportion" value="-0.03"/>大于3%
				<input type="radio" name="priceProportion" value="-0.06"/>大于6%
			</td>
			<td></td>
		</tr>
		<tr>
			<td class="left">比较渠道：</td>
			<td >
				<select style="width: 150px;" id="compareChannel"  >
					<c:forEach var="item" items="${crawlChannels}">
					<option value="${item.hbaseKey}">${item.name}</option>
					</c:forEach>
				</select>
			</td>
			<td>
				<input type="button" onclick="notifyCrawl();" value="" class="btn01" id="Submit1" disabled="disabled"/>
				&nbsp;
				<input type="reset" value="" class="btn02" id="Submit2"/>
			</td>
		</tr>
	</table>
	</form>
	<%-- 小小隐藏域临时数据，为了方便实时抓取 --%>
	<c:forEach var="item" items="${crawlCompanys}">
		<input type="hidden" value="${item. carrierKey}-${item.hbaseKey}" name="temp_company_data"/>
	</c:forEach>
	<c:forEach var="item" items="${crawlChannels}">
		<input type="hidden" value="${item. carrierKey}-${item.hbaseKey}" name="temp_company_data"/>
	</c:forEach>
	
	<div class="high_10"></div>
	<div class="form_table_tltle"><div style="float:left;">航班价差统计总表</div></div>
	<table width="0" border="0" cellspacing="0" cellpadding="0" class="form_list">
		<tr class="title">
			<td style="text-align: center">未来天数</td>
			<td style="text-align: center">航班日期</td>
			<td style="text-align: center">大于3%</td>
			<td style="text-align: center">占比</td>
			<td style="text-align: center">大于6%</td>
			<td style="text-align: center">占比</td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>	
	</table>
	<%-- 获取实时数据按钮 --%>
	<%--所有航班统计的结果，用ligerUI --%>
	<div id="all_flight_stats_result"></div>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<jsp:include page="../inc/footer2.jsp"></jsp:include> 
</body>
</html>